import BaseLayout from "../../layouts/BaseLayout.vue";
import {ref} from "vue";


const routes_hq = ref([
  {
    path: '/record',
    component: BaseLayout,
    meta: { title: '交易所模拟' },
    children: [
      {
        path: '/record/config',
        component: () => import('../../views/MarketMock/Record/LinkConfig.vue'),
        meta: { title: '连接配置管理' },
      },
      {
        path: '/record/receive',
        component: () => import('../../views/MarketMock/Record/ReceiveNews.vue'),
        meta: { title: '录制行情消息' },
      },
      {
        path: '/record/encode',
        component: () => import('../../views/MarketMock/Record/UploadAndUnzip.vue'),
        meta: { title: '行情文件' },
      },
      {
        path: '/record/records',
        component: () => import('../../views/MarketMock/Record/Records.vue'),
        meta: { title: '分布记录' },
      },
      {
        path: '/record/news',
        component: () => import('../../views/MarketMock/Record/News.vue'),
        meta: { title: '行情消息' },
      },
    ]
  },
  {
    path: '/play',
    component: BaseLayout,
    meta: { title: '交易所模拟' },
    children: [
      {
        path: '/play/strategy',
        component: () => import('../../views/MarketMock/Play/Strategy.vue'),
        meta: { title: '推送策略' },
      },
      {
        path: '/play/task',
        component: () => import('../../views/MarketMock/Play/ManageTasks.vue'),
        meta: { title: '客户端' },
      },
      {
        path: '/play/job',
        component: () => import('../../views/MarketMock/Play/Jobs.vue'),
        meta: { title: '定时任务' },
      }
    ]
  },
  {
    path: '/config',
    component: BaseLayout,
    meta: { title: '交易所模拟' },
    children: [
      {
        path: '/config/params',
        component: () => import('../../views/MarketMock/Config/ParamsSet.vue'),
        meta: { title: '参数列表' },
      },
      {
        path: '/config/document',
        component: () => import('../../views/MarketMock/Config/LocalDocument.vue'),
        meta: { title: '参数列表' },
      }
    ]
  }
]);

export default routes_hq.value;